package edu.se.jai.lesson04guess2.model.message;

import edu.se.jai.lesson04guess2.model.GameStatus;
import edu.se.jai.lesson04guess2.model.entity.Player;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.util.Map;

/**
 * 所有房间列表消息数据
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Room {

        /**
         * 房间ID
         */
        private String roomId;

        /**
         * 房间创建者会话ID
         */
        private String creatorSessionId;

        /**
         * 房间创建者名称
         */
        private String creatorName;

        /**
         * 游戏状态
         */
        private GameStatus status;

        /**
         * 当前玩家列表
         */
        private Map<String, Player> players;

    }


